import 'package:flutter/material.dart';

class ShowBox extends StatefulWidget {
  final String title;
  final int value;

  const ShowBox({
    super.key,
    required this.title,
    required this.value,
  });

  @override
  State<ShowBox> createState() => _ShowBoxState();
}

class _ShowBoxState extends State<ShowBox> {
  @override
  Widget build(BuildContext context) {
    return Container(
      padding: const EdgeInsets.symmetric(vertical:10,horizontal: 15),
      decoration: BoxDecoration(
        // color: Colors.tealAccent, // 背景色
        border: Border.all(
          color: Colors.blue, // 边框颜色
          width: 2, // 边框宽度
        ),
        borderRadius: BorderRadius.circular(10), // 边框圆角
      ),
      child: Column(
        children: [Text(widget.title), Text(widget.value.toString())],
      ),
    );
  }
}
